package com.yxp.webtest.service.impl;

import com.yxp.webtest.bean.Address;
import com.yxp.webtest.service.AddressService;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;

import java.util.ArrayList;
import java.util.List;

@Controller
@Lazy
public class AddressServiceImp implements AddressService {
    @Override
    public List<Address> queryAddressList() {
        Address address1 = new Address("yxp1", 11);
        Address address2 = new Address("yxp2", 12);
        List<Address> addressList = new ArrayList<Address>();
        addressList.add(address1);
        addressList.add(address2);
        return addressList;
    }
}
